import requset from "../utils/request.js";

//Tab
export let getHomeList = (mid) => {
  return requset({
    url: "/service/home",
    methods: "post",
    params: mid,
  });
};
//tabList
export let getTabList = (params) => {
  return requset({
    url: "/service/rankPage",
    methods: "post",
    params: params,
  });
};

//banner
export let getBannerList = (params) => {
  return requset({
    url: "/service/carouselList",
    methods: "post",
    params: params,
  });
};

//获取当前城市数据
export let getCurrentCity = (params) => {
  return requset({
    url: "/service/rankPage",
    methods: "post",
    params: params,
  });
};

//获取视频数据
export let getVadioList = (params) => {
  return requset({
    url: "/service/articlePage",
    methods: "post",
    params: params,
  });
};
///热门搜索接口
export const getHotSearch = params => {
  return requset.post("/service/hotList", params);
};
//搜索接口
export const getSearch = params => {
  return requset.post("/service/search", params);
};
export const getSearchTips = params => {
  return requset.post("/service/searchTips", params);
};
